package project1;

import java.util.Scanner;

public class Main2_17 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入-58到41的温度");
		double ta = sc.nextDouble();
		System.out.println("请输入大于或等于2的风速");
		double v = sc.nextDouble();
		if (ta >= -58 && ta <= 41) {
			double twc = 35.74 + 0.6215 * ta - (35.75 * Math.pow(v, 0.16))
					+ 0.4275 * ta * Math.pow(v, 0.16);
			System.out.printf("%.5f", twc);
		} else {
			System.out.println("输入有误");
		}

	}
}
